package com.wq.controller;

import com.wq.common.Result;
import com.wq.service.AdminService;
import com.wq.vo.AdminDetailVO;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/admin")
public class AdminController {
    @Resource
    private AdminService adminService;

    @PostMapping("/detail")
    public Result<AdminDetailVO> detail() {
        AdminDetailVO vo = adminService.detail();
        return Result.success(vo);
    }


}
